#include "irsensors.h"
#include "../Robotmap.h"
#define INFRARED_OFFSET 1
#include "../CommandBase.h"

Irsensors::Irsensors() : Subsystem("irsensors") 
{
	for(int i=INFRARED_OFFSET; i<=(NUM_SENSORS+INFRARED_OFFSET); i++)
	{
		Sensors.push_back(new DigitalInput(i));
	}
}
    
void Irsensors::InitDefaultCommand() 
{
	firing = CommandBase::oi->getFireButton();
}

int Irsensors::GetSensor(int x)
{
	return (Sensors[x])->Get();
}
